﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Ivy.Common.Framework.Base;
using System.Runtime.Serialization;

namespace Ivy.SiteAdmin.Entity
{
    [Serializable]
    [DataContract]
   public class ResourceStat : DataEntityBase
    {
        #region  Variable & constant
        Int32 lResourceKey = -1;
        string lResourceDescription = string.Empty;
        Int32 lResourceTotalDownloads = -1;
        #endregion  Variable & constant

        #region Constructor & Destructor
        public ResourceStat()
            : base()
        {
            this.Sys_DeleteType = DeleteType.SoftDeleteOnly;
        }
        #endregion Constructor & Destructor

        #region Properties
        [DataMember]
        public Int32 ResourceKey
        {
            get
            {
                return lResourceKey;
            }
            set
            {
                lResourceKey = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public string ResourceDescription
        {
            get
            {
                return lResourceDescription;
            }
            set
            {
                lResourceDescription = value;
                base.SetEntityStateChangeAttribute();
            }
        }
        [DataMember]
        public Int32 ResourceTotalDownloads
        {
            get
            {
                return lResourceTotalDownloads;
            }
            set
            {
                lResourceTotalDownloads = value;
                base.SetEntityStateChangeAttribute();
            }
        }

        #endregion Properties

        #region Public Methods
        #endregion Public Methods

        #region Events
        #endregion Events

        #region Private Methods
        #endregion Private Methods
    }
}
